package com.miniapi.api.entities;

import lombok.ToString;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Entity(name = "api_user")
public class User {
    @Id
    private String openId; // mediaId
    private String ticket; // 所扫二维码的ticket
    private boolean following; // 是否正在关注
    private String introducer; // 介绍人
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
